package com.zkr.sparecost.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by lenovo on 2020/12/23.
 */
@Data
public class SpareCostUpdate {


    private Integer id;

    @NotNull(message = "价格单价不能为空!")
    private Double price;

    //备注
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    private Boolean status;
    private String updateName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String MaterialCode;
}
